<link rel="stylesheet" type="text/css" href="{:CSS}datetimepicker.min.css">
<div class="row"><h3 class="page-header"> 参赛报名管理</h3></div>
<div class="row">
    <div class="panel panel-default">
        <div class="panel-body">
            <form action='{:U("Ssnews/index")}' class="form-inline text-right m-b-5 fr">
                标题：<input type="text" name='title' value='{$Think.get.title}' class="form-control">
                时间：<input class="form-control datepick required" name="start_time" value="{$Think.get.start_time}" size="12" placeholder="起始时间" readonly>
                <input class="form-control datepick required" name="end_time" value="{$Think.get.end_time}" size="12" placeholder="终止时间" readonly>
                <button class="btn btn-primary" type="submit">搜索</button>
            </form>
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th width="60">序号</th>
                            <th>参赛类别</th>
                            <th>参赛项目</th>
                            <th>标题</th>
                            <th>添加时间</th>
                            <th>浏览人数</th>
                            <th>报名人数</th>
                            <th width="80">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                     <empty name="list">
                            <tr><td colspan="8" align="center">暂无信息</td></tr>
                        </empty>
                        <volist name="list" id="list">
                            <tr>
                                <td>{$i}</td>
                                <td>{$list.js_cslb}</td>
                                <td>{$list.js_csxm}</td>
                                <td>{$list.title}</td>
                                <td>{$list.times|date='Y-m-d H:i', ###}</td>
                                <td>{$list.view}</td>
                                <td><a href='{:U("Cssq/sq_list?id=".$list["id"])}'> {$list.num}</a></td>
                                <td>
                                    <a data-id='{$list.id}' href='{:U("Cssq/add?id=".$list["id"])}' class="btn btn-primary">报名</a>
                                </td>
                            </tr>
                        </volist>
                    </tbody>
                </table>
            </div>
            {$page}
        </div>
    </div>
</div>
<script type="text/javascript" src="{:JS}daterangepicker.min.js"></script>
<script type="text/javascript">
$(".datepick").datetimepicker({format : "yyyy-mm-dd", minView : 2, autoclose : true});
</script>